package com.example.administrator.framework.sample;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.administrator.framework.R;
import com.example.administrator.framework.constants.ConstantValues;
import com.example.administrator.framework.core.AppStatusTracker;
import com.example.administrator.framework.core.BaseActivity;

/**
 * Created by Stay on 2/2/16.
 * Powered by www.stay4it.com
 */
public class LoginActivity extends BaseActivity implements View.OnClickListener {
    private Button mLoginSubmitBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void setUpContentView() {
        setContentView(R.layout.activity_login, R.string.login_title);
    }

    @Override
    protected void setUpView() {
        mLoginSubmitBtn = (Button) findViewById(R.id.mLoginSubmitBtn);
        mLoginSubmitBtn.setOnClickListener(this);
    }

    @Override
    protected void setUpData() {
    }

    @Override
    public void onClick(View v) {
        AppStatusTracker.getInstance().setAppStatus(ConstantValues.STATUS_ONLINE);
        startActivity(new Intent(this, HomeActivity.class));
        finish();
    }
}
